﻿//     Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Linq;
using System.Web;

namespace Gateway.Console
{
    public class InitialIssuerRegistry : IssuerNameRegistry
    {
        // Trusting issuer validator for use only during the Setup phase of the website where we don't know who
        // the token issuer will be. Once we are setup, this verifier is replaced with ValidatingIssuerNameRegistry
        // and driven by metadata from WAAD.
        public override string GetIssuerName(SecurityToken securityToken)
        {
            return "";
        }

        public override string GetIssuerName(SecurityToken securityToken, string requestedIssuerName)
        {
            return requestedIssuerName;
        }
    }
}